package com.netease.nim.demo.session;

import com.netease.nim.demo.session.model.extension.CustomAttachParser;
import com.netease.nimlib.sdk.NIMClient;
import com.netease.nimlib.sdk.msg.MsgService;

/**
 * Created by zhoujianghua on 2015/4/10.
 */
public class SessionManager {

    private SessionManager() {

    }
    public static SessionManager getInstance() {
        return InstanceHolder.instance;
    }

    public static void init() {
        NIMClient.getService(MsgService.class).registerCustomAttachmentParser(new CustomAttachParser());
    }

    private static class InstanceHolder {
        static SessionManager instance = new SessionManager();
    }
}
